package com.ruoyi.project.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.project.domain.OrderInfo;
import com.ruoyi.project.mapper.OrderInfoMapper;
import com.ruoyi.project.service.OrderInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@DataSource(value = DataSourceType.MSSQLSLAVE)
public class OrderInfoServiceImpl implements OrderInfoService {
    @Autowired
    private OrderInfoMapper orderInfoMapper;


    @Override
    public List<OrderInfo> selectOrderInfoList() {
        return orderInfoMapper.selectAllAvlOrderInfoList();
    }

    @Override
    public OrderInfo selectOrderInfoByBh(String bh) {
        return orderInfoMapper.selectOneOrderInfoByBh(bh);
    }
}

